<%--
  Created by IntelliJ IDEA.
  User: lenovo
  Date: 2025/5/13
  Time: 17:54
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<html>
<head>
    <title>登录</title>
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
    <link type="text/css" rel="stylesheet" href="css/base.css">
    <link type="text/css" rel="stylesheet" href="css/index.css">
</head>
<body>
<%-- 显示错误消息 --%>
<c:if test="${not empty msg}">
    <script>
        alert("${msg}");
    </script>
</c:if>

<%--用户登录模块--%>
<div class="login">
    <h1 class="login-title">登录</h1>
    <form class="login-form" action="${pageContext.request.contextPath}/user_login" method="post">
        <input type="text" placeholder="请输入用户名" name="login_username" required>
        <input type="password" placeholder="请输入密码" name="login_password" required>
        <button class="login-btn">登 录</button>
    </form>
    <div class="login-footer fr">
        还没有账号？<a href="${pageContext.request.contextPath}/user_register.jsp">立即注册</a>
    </div>
</div>
</body>
</html>
